package icu.lookyousmileface.service.Impl;

import icu.lookyousmileface.dao.DeptDao;
import icu.lookyousmileface.pojo.Dept;
import icu.lookyousmileface.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author starrysky
 * @title: DeptServiceImpl
 * @projectName springcloud
 * @description: Impl layer
 * @date 2021/2/1201:30
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptDao deptDao;

    @Override
    public boolean addDept(Dept dept) {
        return deptDao.addDept(dept);
    }

    @Override
    public Dept queryById(Long id) {
        return deptDao.queryById(id);
    }

    @Override
    public List<Dept> queryAll() {
        return deptDao.queryAll();
    }
}
